import java.util.concurrent.BlockingDeque;
import java.util.concurrent.LinkedBlockingDeque;

public class demo35 {
    public static void main(String[] args) throws InterruptedException {
        BlockingDeque<Integer> blockingDeque=new LinkedBlockingDeque<>(100);
        for(int i=0;i<100;i++){
            blockingDeque.put(1);
        }
        System.out.println("阻塞队列已满");
        blockingDeque.put(2);
        System.out.println("阻塞队列尝试再次往已满的队列里面放置元素");
    }
}
